package com.iflytek.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 用户表
 * @author h_t
 * @since 2023-09-23
 */

@Data
@TableName("t_user")
@ApiModel(value="User对象")
public class User implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "username")
    @ApiModelProperty(value = "用户名")
    private String username;

    @TableField(value = "password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField(value = "nick_name")
    @ApiModelProperty(value = "昵称")
    private String nickName;

    @TableField(value = "email")
    @ApiModelProperty(value = "邮箱")
    private String email;

    @TableField(value = "phone")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @TableField(value = "avatar")
    @ApiModelProperty(value = "头像")
    private String avatar;

    @TableField(value = "role")
    @ApiModelProperty(value = "角色")
    private String role;

    @TableField(value = "address")
    @ApiModelProperty(value = "地址")
    private String address;

    @TableField(value = "age")
    @ApiModelProperty(value = "年龄",example="1")
    private Integer age;

    @TableField(value = "account")
    @ApiModelProperty(value = "账户余额")
    private BigDecimal account;

}
